#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/12/9 17:49
# @Author  : huidong.bai
# @File    : test1.py
# @Software: PyCharm

import unittest
import paramunittest
from parameterized import parameterized

data = [{'name': 123, 'age': 234},
        {'name': 123, 'age': 234},
        {'name': 123, 'age': 234},
        {'name': 123, 'age': 234},
        {'name': 123, 'age': 234}
        ]


@paramunittest.parametrized({'name': 123, 'age': 234},
        {'name': 123, 'age': 234},
        {'name': 123, 'age': 234},
        {'name': 123, 'age': 234},
        {'name': 123, 'age': 234})

class Test(unittest.TestCase):
    def setParameters(self, name, age):
        self.name = name
        self.age = age

    def setUp(self) -> None:
        print(1111111)

    def tearDown(self) -> None:
        print(222222222)

    def test01(self):
        print(self.name)
        print(self.age)
        print(3333333)
